<template>
   
    <div class="Find">
         <!--头部 -->
        <div class="Register-header">
            <div>
              <router-link to="/Index">
                <img class="zjt" :src="puctuer.zjt" alt="" />
              </router-link>
            </div>
            <div>{{ RegisterMsg[0] }}</div>
            <div>
                <ul v-for="item in list" :key="item.id">
                  <li class="yuanquan">{{ item }}</li>
                </ul>
            </div>
        </div>
         <!-- 精选 -->
		    <div class="find-body">
			<div class="body-ul">
				<ul>
					<li v-for="(item,index) in picture1" :key="index">
						<img :src="item.img">
						<p>{{item.chapter}}</p>
					</li>
				</ul>
			</div>
        </div>
        <!-- 轮播图 -->
        <Banner />
        <!-- 全部 -->
        <ul class="alls">
          <router-link :to="{ path: item.pathss }" v-for="(item,index) in alls" :key="index" active-class="changeClass">
            <li>{{item.wordss}}</li>
          </router-link>
        </ul>
       <!-- 橱柜沙发 -->
       <router-view></router-view>
       <Allfooter />
    </div>
</template>

<script>
import Banner from '@/components/Banner.vue'
import Furniture from '@/components/Find/Furniture.vue'
import Allfooter from '@/components/Allfooter.vue'
export default {
    name: 'Sort',
    components:{
        Banner,Furniture,Allfooter
    },
    data() {
        return {
            alls:[
              {
                "pathss":'/Find/Alls',
                wordss:'全部'
            },
            {
                "pathss":'/Find/Numerical',
                wordss:'电脑数码'
            },
            {
                "pathss":'/Find/Jiadian',
                wordss:'家电'
            },
            {
                "pathss":'/Find/Jiaju',
                wordss:'家居'
            },
            {
                "pathss":'/Find/Cars',
                wordss:'车品'
            },
                ],
            RegisterMsg: ["发现"],
            list:['','',''],
            puctuer: {
                zjt: require("@/assets/images/左箭头.png"),
                     },
            picture1:[
                 {
                  id:1,
                  img: require('@/assets/images/find/精选.png'),
                  chapter:"精选",
                 } ,
                 {
                  id:2,
                  img: require('@/assets/images/find/百科.png'),
                  chapter:"百科",
                 },
                 {
                  id:3,
                  img: require('@/assets/images/find/好吃.png'),
                  chapter:"好吃",
                 },
                 {
                  id:4,
                  img: require('@/assets/images/find/好玩.png'),
                  chapter:"好玩",
                 },
                 {
                  id:5,
                  img: require('@/assets/images/find/好看.png'),
                  chapter:"好看",
                 }
                    ],
        };
    },
};
</script>

<style scoped>
.Find{
    width: 400px;
    margin: 0 auto;
    height: 1100px;
}
a{
    text-decoration: none;
    color: black;
}
.Register-header {
    width: 100%;
    height: 44px;
    background: linear-gradient(white, rgb(239, 239, 239));
    border-bottom: 2px solid lightgray;
    display: flex;
  }
  .Register-header > div:nth-of-type(1) {
    width: 20%;
    height: 100%;
  }
  .Register-header > div:nth-of-type(2) {
    width: 60%;
    height: 100%;
    text-align: center;
    line-height: 44px;
  }
  .Register-header > div:nth-of-type(3) {
    width: 20%;
    height: 100%;
  }
  .denglu {
    width: 70px;
    text-align: center;
    line-height: 44px;
  }
  .zjt {
    width: 25px;
    height: 25px;
    margin-top: 9.5px;
    margin-left: 5px;
  }
.yuanquan {
    float: left;
    list-style: none;
    width: 4px;
    height: 4px;
    margin-left: 3px;
    border: 2px solid black;
    border-radius: 50%;
    margin-top: 5px;
  }



.body-ul{
	height: 35px;   
}
.body-ul>ul{
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	text-align: center;
	height: 60px;
	font-size: 0.8em;
    margin-top: 0px;
    padding: 0px
}
.body-ul>ul>li{
	width: 80px;
   height: 80px;
   border-radius: 0px;
   border: none;
	 cursor: pointer;
   list-style: none;
}
.alls li{
  list-style: none;
  width: 69px;
}
.body-ul>ul>li:hover{
	background-color: rgb(200,37,25);
	color: white;
}
.body-ul img{
	width: 24px;
	height: 24px;
	padding-top: 8px;
}

.alls{
	height: 25px;
  width: 100%;
  padding: 0px;
  display: flex;
  margin: 5px 0;
	
}
.alls>a{
	height: 25px;
	width: 68px;
	line-height: 25px;
  text-align: center;
	font-size: 0.8em;
  display: inline-block;
  margin:0px 5px;
	border: 2px solid white;
	border-radius: 10px;
	cursor: pointer;
 
}

.changeClass{
	background-color: gray;
	font-weight: bold;
}
</style>